<?php

/** 
 * 
 *
 * @package api
 * @subpackage lang
 * @author Richard Fullmer <php-api@byu.edu>
 * @version 1.0
 */
/**
 *
 */
require_once( "lang/Object.php" );

/**
 * Abstract Class Number
 *
 * The abstract class Number is the superclass of classes Float, and Integer.
 * 
 * Subclasses of Number must provide methods to convert the represented numeric value to int, float, boolean, string.  
 *
 * @package api
 * @subpackage lang
 */
abstract class Number extends Object {
	
	/**
	 * Returns the value of the specified number as an int.
	 *
	 * @returns int the value of the specified number. This may involve rounding or truncation.
	 */
	abstract public function intValue();
	
	/**
	 * Returns the value of the specified number as a boolean.
	 *
	 * @returns boolean the boolean value of the specified number. This may involve rounding or truncation.
	 */
	abstract public function booleanValue();
	
	/**
	 * Returns the value of the specified number as a float.
	 *
	 * @returns float the value of the specified number. This may involve rounding or truncation.
	 */
	abstract public function floatValue();
	
	/**
	 * Returns the value of the specified number as a string.
	 *
	 * @returns string the value of the specified number. This may involve rounding or truncation.
	 */
	abstract public function stringValue();
}




?>